package com.chuang.bootplus.service;

import com.chuang.bootplus.base.utils.ApiResponse;
import com.chuang.bootplus.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chuang.bootplus.po.LoginCodePO;
import com.chuang.bootplus.po.LoginPO;
import com.chuang.bootplus.po.SignInPO;
import com.chuang.bootplus.vo.UserInfoVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-11-04
 */
public interface UserService extends IService<User> {

    ApiResponse<UserInfoVO> login(LoginPO po , HttpServletResponse response);

    ApiResponse<Void> signIn(SignInPO po);

    ApiResponse<UserInfoVO> loginPhone(LoginCodePO po , HttpServletResponse response);

    ApiResponse<Void> logout();
}
